﻿<Window xmlns:Panels="clr-namespace:Devpad_IDE.Panels" xmlns:Devpad_IDE="clr-namespace:Devpad_IDE" x:Class="Devpad_IDE.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:props="clr-namespace:Devpad_IDE.Properties" xmlns:avalonDock="http://schemas.xceed.com/wpf/xaml/avalondock"  xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
    Title="Devpad IDE" Left="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Left, Mode=TwoWay}" Top="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Top, Mode=TwoWay}" Height="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Height, Mode=TwoWay}" Width="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Width, Mode=TwoWay}" MinHeight="240" MinWidth="540" Closing="Window_Closing" Loaded="Window_Loaded">
    <Window.Resources>
        <avalonDock:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter"/>
    </Window.Resources>
    <Grid>
        <Menu Name="MainMenu" VerticalAlignment="Top">
            <MenuItem Header="File">
                <MenuItem Header="New">
                    <MenuItem Name="NewProjectMenuItem" Header="Project..." Click="NewProjectMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Height="16" Width="16" Source="Images\File\newproject16.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Name="NewFileMenuItem" Header="File..." Click="NewFileMenuItem_Click">
                        <MenuItem.Icon>
                            <Image Height="16" Width="16" Source="Images\File\newfile16.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </MenuItem>
                <MenuItem Header="Open">
                    <MenuItem Header="Project...">
                        <MenuItem.Icon>
                            <Image Height="16" Width="16" Source="Images\File\openproject16.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                    <MenuItem Header="File...">
                        <MenuItem.Icon>
                            <Image Height="16" Width="16" Source="Images\File\openfile16.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </MenuItem>
                <Separator />
                <MenuItem Header="Close" IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\close16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Close Project" IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\closeproject16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Header="Save" IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\save16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Save As..." IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\saveas16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Save All" IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\saveall16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Header="Page Setup..." IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\pagesetup16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Header="Print..." IsEnabled="False">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\print16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <Separator />
                <MenuItem Name="ExitMenuItem" Header="Exit" Click="ExitMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\File\exit16.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Edit" Visibility="Collapsed">
                <MenuItem Header="Undo" />
                <MenuItem Header="Redo" />
                <Separator />
                <MenuItem Header="Cut" />
                <MenuItem Header="Copy" />
                <MenuItem Header="Paste" />
                <MenuItem Header="Delete" />
                <Separator />
                <MenuItem Header="Select All" />
                <Separator />
                <MenuItem Header="Find" />
                <MenuItem Header="Replace" />
            </MenuItem>
            <MenuItem Header="View">
                <MenuItem Name="MenubarMenuItem" Header="Menubar" IsCheckable="True" IsChecked="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Menubar, Mode=TwoWay}" Click="MenubarMenuItem_Click" />
                <MenuItem Name="ToolbarMenuItem" Header="Toolbar" IsCheckable="True" IsChecked="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Toolbar, Mode=TwoWay}" Click="ToolbarMenuItem_Click" />
                <MenuItem Name="StatusbarMenuItem" Header="Stausbar" IsCheckable="True" IsChecked="{Binding Source={x:Static props:Settings.Default}, Path=MainWindow_Statusbar, Mode=TwoWay}" Click="StatusbarMenuItem_Click" />
                <Separator />
                <MenuItem Name="ProjectPanelMenuItem" Header="Project" Click="ProjectPanelMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\project16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Name="PropertiesMenuItem" Header="Propreties" Click="PropertiesMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\properties16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Name="CommandMenuItem" Header="Command" Click="CommandMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\command16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Name="OutputMenuItem" Header="Output" Click="OutputMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\output16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Name="ErrorListMenuItem" Header="Error List" Click="ErrorListMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\error16.png" />
                    </MenuItem.Icon>
                </MenuItem>
                <MenuItem Name="TaskListMenuItem" Header="Task List" Click="TaskListMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\View\task16.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Project" Visibility="Collapsed">
                <MenuItem Header="Add New Item..." />
                <MenuItem Header="Add Existing Item..." />
                <Separator />
                <MenuItem Header="Properties..." />
            </MenuItem>
            <MenuItem Header="Build" Visibility="Collapsed">
                <MenuItem Header="Build Project" />
                <MenuItem Header="Clean Project" />
            </MenuItem>
            <MenuItem Header="Debug" Visibility="Collapsed">
                <MenuItem Header="Start Debugging" />
                <MenuItem Header="Start Without Debugging" />
            </MenuItem>
            <MenuItem Header="Tools">
                <MenuItem Name="OptionsMenuItem" Header="Options..." Click="OptionsMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\Tools\options16.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Name="AboutMenuItem" Header="About..." Click="AboutMenuItem_Click">
                    <MenuItem.Icon>
                        <Image Height="16" Width="16" Source="Images\Help\about16.png" />
                    </MenuItem.Icon>
                </MenuItem>
            </MenuItem>
        </Menu>
        <ToolBar Name="MainToolbar" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,21,0,0">
            <Button Name="NewProjectButton" Click="NewProjectMenuItem_Click">
                <Image Height="16" Width="16" Source="Images\File\newproject16.png" />
            </Button>
            <Button Name="NewFileButton" Click="NewFileMenuItem_Click">
                <Image Height="16" Width="16" Source="Images\File\newfile16.png" />
            </Button>
            <Button Name="OpenProjectButton">
                <Image Height="16" Width="16" Source="Images\File\openproject16.png" />
            </Button>
            <Button Name="OpenFileButton">
                <Image Height="16" Width="16" Source="Images\File\openfile16.png" />
            </Button>
            <Button Visibility="Collapsed" Name="SaveButton">
                <Image Height="16" Width="16" Source="Images\File\save16.png" />
            </Button>
            <Button Visibility="Collapsed" Name="SaveAllButton">
                <Image Height="16" Width="16" Source="Images\File\saveall16.png" />
            </Button>
            <Button Visibility="Collapsed" Name="PrintButton">
                <Image Height="16" Width="16" Source="Images\File\print16.png" />
            </Button>
            <Separator />
        </ToolBar>
        <avalonDock:DockingManager x:Name="dockingManager" Margin="0,48,0,23">
            <avalonDock:LayoutRoot>
                <avalonDock:LayoutPanel Orientation="Horizontal">
                    <avalonDock:LayoutAnchorablePane DockWidth="164">
                        <avalonDock:LayoutAnchorable x:Name="ProjectPanelLayout" ContentId="ProjectPanel" Title="Project" IconSource="pack://application:,,,/Images\View\project16.png" >
                            <Panels:ProjectPanel x:Name="projectPanel" />
                        </avalonDock:LayoutAnchorable>
                    </avalonDock:LayoutAnchorablePane>
                    <avalonDock:LayoutDocumentPane />
                    <avalonDock:LayoutAnchorablePane DockWidth="192">
                        <avalonDock:LayoutAnchorable x:Name="PropertiesPanelLayout" ContentId="PropertiesPanel" Title="Properties" IconSource="pack://application:,,,/Images\View\properties16.png">
                            <Panels:PropertiesPanel x:Name="propertiesPanel" />
                        </avalonDock:LayoutAnchorable>
                    </avalonDock:LayoutAnchorablePane>
                </avalonDock:LayoutPanel>
                <avalonDock:LayoutRoot.BottomSide>
                    <avalonDock:LayoutAnchorSide>
                        <avalonDock:LayoutAnchorGroup>
                            <avalonDock:LayoutAnchorable x:Name="CommandPanelLayout" ContentId="CommandPanel" Title="Command" IconSource="pack://application:,,,/Images\View\command16.png">
                                <Panels:CommandPanel x:Name="commandPanel" />
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable x:Name="OutputPanelLayout" ContentId="OutputPanel" Title="Output" IconSource="pack://application:,,,/Images\View\output16.png">
                                <Panels:OutputPanel x:Name="outputPanel" />
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable x:Name="ErrorListPanelLayout" ContentId="ErrorListPanel" Title="Error List" IconSource="pack://application:,,,/Images\View\error16.png">
                                <Panels:ErrorListPanel x:Name="errorlistPanel" />
                            </avalonDock:LayoutAnchorable>
                            <avalonDock:LayoutAnchorable x:Name="TaskListPanelLayout" ContentId="TaskListPanel" Title="Task List" IconSource="pack://application:,,,/Images\View\task16.png">
                                <Panels:TaskListPanel x:Name="tasklistPanel" />
                            </avalonDock:LayoutAnchorable>
                        </avalonDock:LayoutAnchorGroup>
                    </avalonDock:LayoutAnchorSide>
                </avalonDock:LayoutRoot.BottomSide>
            </avalonDock:LayoutRoot>
        </avalonDock:DockingManager>
        <StatusBar Name="Statusbar" Height="23" VerticalAlignment="Bottom"/>
    </Grid>
</Window>